Name :Greater than
Symbol :GT
Illustrate:
Compare the size of the first input with the second input, and assign the result to the output OUT.
Image:
Parameter:
| Parameter | Statement | Type | Description |
|---|---|---|---|
| IN1 | Input | INT/SINT/DINT/UINT/USINT/UDINT/ULINT/REAL/LREAL/BYTE/WORD/LWORD/DWORD/TIME/DATE/TOD/DT/STRING | The first input value |
| IN2 | Input | INT/SINT/DINT/UINT/USINT/UDINT/ULINT/REAL/LREAL/BYTE/WORD/LWORD/DWORD/TIME/DATE/TOD/DT/STRING | The second input value |
| OUT | Output | BOOL | Output value |
Example:
LD:
ST:
Interpretation:
| parameter | operand | value |
|---|---|---|
| IN1 | TagIn1 | Enter a value:2 |
| IN2 | TagIn2 | Enter a value:1 |
| OUT | TagOut | Output value:1 |
IN1 and IN2 input the corresponding type of data, and GT outputs the calculation result.